import logging,yagmail
import os

import pytest


# if __name__ == '__main__':
#     # allure报告
#     pytest.main([r'','-s','--html=./allurereport'])
#     os.system('allure generate ./allurereport-0 ./allure-html --clean')
def log():
    # 日志
    logging.basicConfig(filename='log.txt',filemode='w+',format='',level=logging.DEBUG)

def fasong(aaa):
    r=yagmail.SMTP(user='2796502172@qq.com',password='gzxbqpmttpesdcig',host='smtp.qq.com')
    r.send(to='2796502172@qq.com',subject='了',contents='dd',attachments=aaa)
